<template>
  <div class="box">
    <h1>Child:{{count}}</h1>
    <button @click="add(100)">向父组件传递数据</button>
    <button @click="count++">修改props数据</button>
  </div>
</template>

<script>
export default {
  name: "Child",
  props: ["count" , "add"],

};
</script>

<style scoped>
.box {
  background: yellowgreen;
}
</style>
